home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Think Class Libraries / TP TCL->CW TCL v1.1.2.3 / UPI ƒ / Updated UPIs ƒ / Scrap.p < prev    next >
Text File  |  1996-02-27  |  2KB  |  95 lines

  1. {
  2.      File:        Scrap.p
  3.  
  4.      Contains:    Scrap Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT Scrap;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __SCRAP__}
  30. {$SETC __SCRAP__ := 1}
  31.  
  32. {$I+}
  33. {$SETC ScrapIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __TYPES__}
  38. {$I Types.p}
  39. {$ENDC}
  40. {    ConditionalMacros.p                                            }
  41.  
  42. {$PUSH}
  43. {$ALIGN MAC68K}
  44. {$LibExport+}
  45.  
  46. TYPE
  47.     ScrapStuff = RECORD
  48.         scrapSize:                LONGINT;
  49.         scrapHandle:            Handle;
  50.         scrapCount:                INTEGER;
  51.         scrapState:                INTEGER;
  52.         scrapName:                StringPtr;
  53.     END;
  54.  
  55.     PScrapStuff = ^ScrapStuff;
  56. {MWERKS    ScrapStuffPtr = ^ScrapStuff;}
  57.     ScrapStuffPtr = PScrapStuff;
  58.  
  59.  
  60. FUNCTION InfoScrap: ScrapStuffPtr;
  61.     {$IFC NOT GENERATINGCFM}
  62.     INLINE $A9F9;
  63.     {$ENDC}
  64. FUNCTION UnloadScrap: LONGINT;
  65.     {$IFC NOT GENERATINGCFM}
  66.     INLINE $A9FA;
  67.     {$ENDC}
  68. FUNCTION LoadScrap: LONGINT;
  69.     {$IFC NOT GENERATINGCFM}
  70.     INLINE $A9FB;
  71.     {$ENDC}
  72. FUNCTION GetScrap(hDest: Handle; theType: ResType; VAR offset: LONGINT): LONGINT;
  73.     {$IFC NOT GENERATINGCFM}
  74.     INLINE $A9FD;
  75.     {$ENDC}
  76. FUNCTION ZeroScrap: LONGINT;
  77.     {$IFC NOT GENERATINGCFM}
  78.     INLINE $A9FC;
  79.     {$ENDC}
  80. FUNCTION PutScrap(length: LONGINT; theType: ResType; source: UNIV Ptr): LONGINT;
  81.     {$IFC NOT GENERATINGCFM}
  82.     INLINE $A9FE;
  83.     {$ENDC}
  84.  
  85. {$ALIGN RESET}
  86. {$POP}
  87.  
  88. {$SETC UsingIncludes := ScrapIncludes}
  89.  
  90. {$ENDC} {__SCRAP__}
  91.  
  92. {$IFC NOT UsingIncludes}
  93.  END.
  94. {$ENDC}
  95.